package com.chinatelecom.otms.circuitcheck;

import com.chinatelecom.otms.circuitcheck.util.Common;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
@MapperScan("com.chinatelecom.otms.circuitcheck")
public class RunApplication {
    public static void main(String[] args) throws InterruptedException {
        ConfigurableApplicationContext ctx = SpringApplication.run(RunApplication.class, args);
        Common.countDownLatch.await();
        Common.singleThreadExecutor.shutdown();
        System.out.println("电路检查完成");
        ctx.close();
    }
}